<template>
  <div>vue2 home</div>
</template>

<script>
import actions from '@/actions'
export default {
  mounted() {
    actions.setGlobalState({ cake: 1 })
    actions.onGlobalStateChange(state => {
      console.log(state, 2222222222)
    })
    // console.log(actions.getGlobalState('email'), actions.getGlobalState('cake'))
  }
}
</script>

<style>

</style>